package com.woniu.smart.mapper;

import com.woniu.smart.dto.ContractDTO;
import com.woniu.smart.dto.ContractInformationDTO;
import com.woniu.smart.entity.Contract;
import com.woniu.smart.vo.ContractVo;
import com.woniu.smart.vo.ContractsVO;

import java.util.List;

/**
 * @author wangheng
 * @description 针对表【contract】的数据库操作Mapper
 * @createDate 2022-10-19 19:23:47
 * @Entity com.woniu.smart.entity.Contract
 */
public interface ContractMapper {

    int deleteByPrimaryKey(Long id);

    int deleteByList(List delList);

    List<Contract> selectContractAll();

    List<ContractsVO> selectContractAllS(ContractDTO contractDTO);

    int insert(Contract record);

    int insertSelective(Contract record);

    int insertSelectives(ContractInformationDTO contractInformationDTO);

    Contract selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Contract record);

    int updateByPrimaryKey(Contract record);

    List<Contract> queryContractByContractVo(ContractVo contractVo);

}
